/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;
import java.io.Serializable;  
import javax.faces.bean.ManagedBean;  
import javax.faces.bean.SessionScoped;  

import DAO.userDao;
import java.sql.SQLException;
/**
 *
 * @author Ariel
 */

@ManagedBean  
@SessionScoped
public class User {
    private String name;
    private String password;

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
    public void dosomething(){
        userDao p= new userDao();
       try{ 
        p.getUsers();
       }
       catch (SQLException e){
       String pw= e.getMessage();
       }
        
        
    }
    
    
}
